package cn.edu.sgu.www.mhxysy.entity.role;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 角色账号
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("jsgl_jszhb")
public class RoleAccount implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "角色ID")
	private String id;

	/**
	 * 角色名字
	 */
	@ApiModelProperty(value = "角色名字")
	private String name;

	/**
	 * 角色等级
	 */
	@ApiModelProperty(value = "角色等级")
	private Integer grade;

	/**
	 * 人物评分
	 */
	@ApiModelProperty(value = "人物评分")
	private Integer score;

	/**
	 * 金币
	 */
	@ApiModelProperty(value = "金币")
	private Integer jinbi;

	/**
	 * 账号ID
	 */
	@ApiModelProperty(value = "账号ID")
	private String accountId;

	/**
	 * 门派ID
	 */
	@ApiModelProperty(value = "门派ID")
	private Integer schoolId;

	/**
	 * 服务器ID
	 */
	@ApiModelProperty(value = "服务器ID")
	private Integer serverId;

	/**
	 * 帮派ID
	 */
	@ApiModelProperty(value = "帮派ID")
	private String gangId;

	/**
	 * 角色造型ID
	 */
	@ApiModelProperty(value = "角色造型ID")
	private Integer categoryId;

	/**
	 * 角色创建时间
	 */
	@ApiModelProperty(value = "角色创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime birthday;

	/**
	 * 最后一次修改时间
	 */
	@ApiModelProperty(value = "最后一次修改时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime lastUpdateTime;
}